package cn.bluemobi.app.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.bluemobi.app.entity.output.Banner;
import cn.bluemobi.app.mapper.BannerMapper;
import cn.bluemobi.app.service.BannerService;
import cn.bluemobi.common.core.dto.ListDto;

@Service
@Transactional
public class BannerServiceImpl implements BannerService {

	@Autowired
	private BannerMapper bannerMapper;

	@Override
	public ListDto<Banner> findBannerLsit() {
		ListDto<Banner> dto = new ListDto<Banner>();
		Map<String, Object> params = new HashMap<String, Object>();
		List<Banner> banners = bannerMapper.findBannerLsit(params);
		dto.setList(banners);
		return dto;
	}

}
